window.WeaHrm4Formal = false;
window.inputType = {
    inputType: 'MULTILANG',
    isBase64: true
};
window.HrmGroupCol = 2; //人力布局(1、一行2列，2、一行4列)
window.HrmLabelCol = 6;
window.HrmWrapperCol = 15;
window.HrmEngineLabelCol = 6;
window.HrmEngineWrapperCol = 18;
window.defaultScheduleBGColor = [
    '#47A9FC',
    '#70C06F',
    '#F6D65C',
    '#EA744D',
    '#4EBCCC',
    '#EA5C85',
    '#8F72F2',
    '#7297F2',
    '#CA4DE4',
    '#A7CC62'
];
import {
    Route
} from 'react-router';
import {
    WeaLocaleProvider
} from 'ecCom';
import {
    isEnableMultiLang
} from './apis/common';

import Home from './components/Home';
import AddressBook from './components/addressBook/index';

import './style/index';
import './util/index';
import stores from './stores/index';
isEnableMultiLang().then(data => {
    window.inputType = {
        inputType: 'NORMAL'
    }
    if (data.status === '1') {
        if (data.isEnableMultiLang) {
            window.inputType = {
                inputType: 'MULTILANG',
                isBase64: true
            }
        }
    }
}, error => {
    window.inputType = {
        inputType: 'NORMAL'
    }
})
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'hrm');
const HrmAddressBookRoute = (
    <Route path="hrm" onEnter={getLocaleLabel} component={Home}>
        <Route name="telBook" breadcrumbName="通讯录" path="telBook" component={AddressBook}/>
    </Route>
)
module.exports = {
    Route: HrmAddressBookRoute,
    store: stores
}